﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;

namespace WeChat.Models
{
    //public class HttpUtility
    //{
    //    public static T Get<T>(string url)
    //    {
    //        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
    //        request.Method = "get";
    //        request.Timeout = 2000;
    //        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    //        StreamReader sr = new StreamReader(response.GetResponseStream(), System.Text.Encoding.UTF8);

    //        string result = sr.ReadToEnd();

    //        return JsonConvert.DeserializeObject<T>(result);


    //    }
    //}
}